<%@ page language="java" pageEncoding="utf8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>DbErrorList</title>
		<link href="tablecloth/tablecloth.css" rel="stylesheet"
			type="text/css" media="screen" />
		<script type="text/javascript" src="tablecloth/tablecloth.js"></script>
		<script type="text/javascript" src="js/splitpage.js"></script>
		<link href="css/splitpage.css" rel="stylesheet"
			type="text/css" media="screen" />
			
		<link rel="stylesheet" href="js/poshytip/tip-violet/tip-violet.css" type="text/css" />
		<link rel="stylesheet" href="js/poshytip/tip-yellow/tip-yellow.css" type="text/css" />
		<!-- jQuery and the Poshy Tip plugin files -->
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/poshytip/jquery.poshytip.js"></script>
		<script type="text/javascript">
			$(function(){
				$('#demo-basic').poshytip();
				for(var i=1;i<250;++i){
					$('#demo-tip-yellow'+i).poshytip();
				}
				$('#demo-tip-yellow').poshytip();
				$('#demo-tip-violet').poshytip({
				className: 'tip-violet',
				bgImageFrameSize: 9
			});
			});
		</script>
		<style type="text/css">
			<!--
			.STYLE1 {
				font-family: "宋体";
				font-size: small;
				color: #999999;
			}
			
			.STYLE2 {
				font-size: small
			}
			-->
		</style>
	</head>
	<body>
		<div align="center">
			<img src="image/temp.jpg" alt="首页" width="100%" height="70"
				align="middle">
		</div>
		<table width="100%" border="0" style="">
          <tr>
            <td width="50%"><span class="STYLE1">当前位置—<a href="redirect.do?method=welcome">首页</a>—数据库问题列表</span></td>
            <td width="50%"><div align="right" class="STYLE2">
			<a href="mgrdberror.do?method=toAddDbError">添加故障信息</a>&nbsp;<a href="redirect.do?method=welcome">首页</a>&nbsp;<a href="logout.do">退出 </a>
		</div></td>
          </tr>
        </table>
		
		<table cellspacing="0" cellpadding="0">
			<tr>
				<th>
					IP
				</th>
				<th>
					HostName
				</th>
				<th >
					DbName
				</th>
				<th>
					Date
				</th>
				<th>
					提交人
				</th>
				<th>
					现象
				</th>
				<th>
					分析原因
				</th>
				<th>
					解决办法
				</th>
				<th>
					应急措施
				</th>
				<th>
					Edit
				</th>
			</tr>
			<c:set var="i" value="1" />
			<c:forEach var="db" items="${map.dtoList}">
				<tr>
					<td>
						<c:out value="${db.ip}" />
					</td>
					<td>
						<c:out value="${db.hostname}" />
					</td>
					<td>
						<c:out value="${db.dbname}" />
					</td>
					<td>
						<c:out value="${db.faultdate}" />
					</td>
					<td>
						<c:out value="${db.applyperson}" />
					</td>
					<td title="${db.phenomenon}" id="demo-tip-yellow${i}" style="cursor:pointer">
						<c:out value="${db.shortphenomenon}" />
					</td>
					<c:set var="i" value="${i+1}" />
					<td title="${db.analysis}" id="demo-tip-yellow${i}" style="cursor:pointer">
						<c:out value="${db.shortanalysis}" />
					</td>
					<c:set var="i" value="${i+1}" />
					<td title="${db.disposalmethod}" id="demo-tip-yellow${i}" style="cursor:pointer">
						<c:out value="${db.shortdisposalmethod}" />
					</td >
					<c:set var="i" value="${i+1}" />
					<td title="${db.emergencyplan}" id="demo-tip-yellow${i}" style="cursor:pointer">
						<c:out value="${db.shortemergencyplan}" />
					</td>
					<c:set var="i" value="${i+1}" />
					<td>
						<img align="middle" title="编辑" src="image/btn_edit.jpg" onclick="window.location.href='mgrdberror.do?method=edit&id=${db.id}&index=${map.index}'" style="cursor:pointer">
						<img align="middle" title="删除" src="image/btn_delete.jpg" onclick="window.location.href='mgrdberror.do?method=delete&id=${db.id}&index=${map.index}'" style="cursor:pointer">
					</td>
				</tr>
			</c:forEach>
		</table>
		<div id="pager" style="padding-top:10px;padding-bottom:10px;background-color:#328aa4;"></div>
		<script type="text/javascript">
			var pager = new PagerView('pager');
			pager.itemCount = "${map.totalCount}";
			pager.size = "${map.limit}";
			pager.index = "${map.index}";
			pager.onclick = function(index){
				window.location.href = "mgrdberror.do?method=dberrorlist&index="+index;
			};
			pager.render();
		</script>
					
		
	</body>
</html>
